package org.example.library.service;

import org.example.library.pojo.User;
import org.example.library.pojo.dto.UserDto;

public interface IUserService {
    /**
     * 插入用户
     *
     * @param user：参数
     * @return
     */
    User add(UserDto user);
    //查询用户
    User getUser(Integer userId);

    /**
     * 修改用户
     * @param user
     * @return
     */
    User edit(UserDto user);

    User delete(Integer userId);
}
